package com.witdata.common.service.community;

import com.witdata.common.domain.dto.ArticleDto;
import com.witdata.common.domain.vo.ArticleInfoVo;
import com.witdata.common.domain.vo.ArticleListWithLikeAndCommentCountVo;
import com.witdata.common.domain.vo.ArticleVo;

import java.util.List;

public interface ArticleService {
    List<ArticleDto> getArticleList(Long communityId);

    List<ArticleVo> getArticleListByTagId(Long communityId, Long tagId);

    void publishArticle(ArticleDto articleDto);

    void deleteArticle(Long articleId);

    List<ArticleListWithLikeAndCommentCountVo> getArticleListWithLikeAndCommentCount(Long communityId);

    ArticleInfoVo getArticleInfo(Long articleId);
}
